package com.Helper;

import java.sql.DriverManager;

public class Info 
{
	protected java.sql.Connection connection = null;
		
	public void ConnectDB()
	{
		String connectionString = "jdbc:mysql://localhost/PlaneSimple?user=sqluser&password=sqluserpw";

		try
        {
            // Ensure the SQL Server driver class is available.
            Class.forName("com.mysql.jdbc.Driver");

            // Establish the connection.
            connection = DriverManager.getConnection(connectionString);
        }
        // Exception handling
        catch (ClassNotFoundException cnfe)  
        {
        	
            System.out.println("ClassNotFoundException " +
                               cnfe.getMessage());
        }
        catch (Exception e)
        {
            System.out.println("Exception " + e.getMessage());
            e.printStackTrace();
        }
				
	}
}
